﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using JM.JCY.BusinessEntity;

namespace JM.JCY.Common
{
    public interface IAnnounce
    {
        void UpdateAnnounce(AnnounceDataSet ds);
        void UpdateAnnouceSingle(AnnounceDataSet.T_AnnounceDataTable dt);
        void UpdateAnnounceReceiverSingle(AnnounceDataSet.T_Announce_ReceiverDataTable dt);
        AnnounceDataSet.T_Announce_ReceiverDataTable GetAnnounceReceiverById(int announceId);
        AnnounceDataSet.T_Announce_SearchDataTable SearchAnnounce(string subject, string status, string readStatus, DateTime? startDate, DateTime? endDate);
        AnnounceDataSet.T_AnnounceDataTable GetAnnounce(int announceId, string subject, string status);
        AnnounceDataSet.T_Announce_Search_By_UserDataTable SearchAnnounceByUser(string subject, DateTime? startDate, DateTime? endDate, int currentUserId);
        AnnounceDataSet.T_AnnounceDataTable SearchAnnouncForHome(int count, int receiverId);
        void UpdateAnnounceStatus(int annId, string userName);
    }
}
